#define _CRT_SECURE_NO_WARNINGS 1
#include "Sort.h"

void TestQuickSort()
{
	int a[] = { 5, 1, 0, 8, 7, 1, 9, 0, -2, 4, 16, 2, 50, 3, 6, 14 };
	//int a[] = { 5, 1, 0, 8, 7 };
	int n = sizeof(a) / sizeof(a[0]);
	QuickSortNonR(a, 0, n - 1);
	PrintSort(a, n);
}

void TestBubbleSort()
{
	int a[] = { 5, 1, 0, 8, 7, 1, 9, 0, -2, 4, 16, 2, 50, 3, 6, 14 };
	//int a[] = { 5, 1, 0, 8, 7 };
	int n = sizeof(a) / sizeof(a[0]);
	BubbleSort(a, n);
	PrintSort(a, n);
}


int main()
{
	//TestQuickSort();
	TestBubbleSort();
	return 0;
}